package com.zzf.观察者模式;

public class Manager implements Observer{
    @Override
    public void update(Object arg) {
        int priceVar = (Integer) arg;
        if (priceVar > -5 && priceVar < 5){
            System.out.println("管理者：物价稳定");
        }else {
            System.out.println("管理者：价格波动大");
        }
    }
}
